package com.example.demo.collection.hashmap;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author luowj12
 * @since 2021/4/6 15:52
 */
public class HashMapTest {

    public static void main(String[] args) {
        /*Map T=new HashMap(4,0.75f);
        T.put( "1", "1" );
        T.put( "2", "2" );
        T.put( "3", "3" );
        T.put( "4", "4" );*/
        Map TT=new HashMap(2);
        TT.put("测试","1");
        /*Set<Map.Entry<String,String>> S=T.entrySet();
        Iterator<Map.Entry<String,String>> it=S.iterator();
        while(it.hasNext()){
            Map.Entry<String,String> d=it.next();
            System. out.println(d.getKey()+"是" +d.getValue());}

        Map concurrentHashMap =new ConcurrentHashMap();
        concurrentHashMap.put(null,null);

        List list = new LinkedList<>();*/
    }

}
